import request from "@/utils/request";
// 查询
export const warehouseManagement_ListAPI = (params) => {
  return request({
    url: "/base/manage/warehouse/list",
    params,
  });
};
//添加
export const warehouseManagement_AddAPI = (data) => {
  return request({
    url: "/base/manage/warehouse/save",
    method: "post",
    data,
  });
};
// 修改
export const warehouseManagement_EditAPI = (data) => {
  return request({
    method: "put",
    url: "/base/manage/warehouse/save",
    data,
  });
};
// 删除
export const warehouseManagement_DelAPI = (ids) => {
  return request({
    method: "delete",
    url: `/base/manage/warehouse/del/${ids}`,
  });
};
// 导入
export const warehouseManagement_ExportAPI = (data) => {
  return request({
    url: "/base/manage/warehouse/exportWarehouse",
    method: "post",
    data,
  });
};

// 导入
export const warehouseManagement_ImportAPI = (data) => {
  return request({
    url: "/base/manage/warehouse/importWarehouse",
    method: "post",
    data,
    headers: {
      'content-type': 'multipart/form-data; boundary=<calculated when request is send>'
    }
  });
};

